package com.chixing.day05_oop.work;

public class CompanyOrder extends Order{
    private String companyName;

    public CompanyOrder(Integer orderId, Integer orderNumber, String companyName) {
        super(orderId, orderNumber);
        this.companyName = companyName;
    }

    public CompanyOrder() {
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Override
    public String toString() {
        return super.toString()+"CompanyOrder{" +
                "companyName='" + companyName + '\'' +
                '}';
    }
}
